-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
ENH: support nanoseconds in Period constructor #38175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…aste on line 2501
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm. can you add a whatsnew in bug fixes for 1.2
…34621-nanos-for-Period
thanks @arw2019 |
dt, reso = parse_time_string(value, freq) | ||
try: | ||
ts = Timestamp(value) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aren't we effectively doing the parsing twice, this way? (once in parse_time_string
, once in Timestamp
) Any way to avoid this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff
Picking up #34720
ASVs:
cc @jreback #34720 (comment) in case we want this for 1.2